window.onload=function (){
 function startmarquee(lh,speed,delay) {
    var p=false;
    var iSpeed=1;
    var timer;
    var oUl=document.getElementById("g-itm");
    oUl.innerHTML+=oUl.innerHTML;
    oUl.style.marginTop=-1*oUl.offsetHeight/2+"px";
    oUl.onmouseover=function(){p=true;}
    oUl.onmouseout=function(){p=false;}
    function start(){
    timer=setInterval(scrolling,speed);
    if(!p) oUl.style.marginTop=parseInt(oUl.style.marginTop)+iSpeed+"px";
    }
    function scrolling(){
    if(parseInt(oUl.style.marginTop)%lh!=0){
    oUl.style.marginTop=parseInt(oUl.style.marginTop)+iSpeed+"px";
     if(parseInt(oUl.style.marginTop)>=0) oUl.style.marginTop=-1*oUl.offsetHeight/2+"px";
    }else{
    clearInterval(timer);
    setTimeout(start,delay);
    }
    }
    setTimeout(start,delay);
    }
  startmarquee(120,5,1000);





}